package qldc.pm.tienan.model.impl;

import com.liferay.portal.kernel.exception.SystemException;

import qldc.pm.tienan.model.DoiTuongTienAn;
import qldc.pm.tienan.service.DoiTuongTienAnLocalServiceUtil;

/**
 * The extended model base implementation for the DoiTuongTienAn service. Represents a row in the &quot;TA_DoiTuongTienAn&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This class exists only as a container for the default extended model level methods generated by ServiceBuilder. Helper methods and all application logic should be put in {@link DoiTuongTienAnImpl}.
 * </p>
 *
 * @author Brian Wing Shun Chan
 * @see DoiTuongTienAnImpl
 * @see qldc.pm.tienan.model.DoiTuongTienAn
 * @generated
 */
public abstract class DoiTuongTienAnBaseImpl extends DoiTuongTienAnModelImpl
    implements DoiTuongTienAn {
    /*
     * NOTE FOR DEVELOPERS:
     *
     * Never modify or reference this class directly. All methods that expect a doi tuong tien an model instance should use the {@link DoiTuongTienAn} interface instead.
     */
    @Override
    public void persist() throws SystemException {
        if (this.isNew()) {
            DoiTuongTienAnLocalServiceUtil.addDoiTuongTienAn(this);
        } else {
            DoiTuongTienAnLocalServiceUtil.updateDoiTuongTienAn(this);
        }
    }
}
